package com.example.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import androidx.appcompat.widget.Toolbar;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class RelativeActivity extends AppCompatActivity {
  @Override protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.relativelayout);

    Toolbar toolbar=findViewById(R.id.toolbar2);
    toolbar.setTitle("相对布局");
    setSupportActionBar(toolbar);

  }
  public void BackToLastActivity(View view)
  {
    Intent intent = new Intent(this, MainActivity.class);
    startActivity(intent);
  }
  public void GoToNextActivity(View view)
  {
    Intent intent = new Intent(this, TableActivity.class);
    startActivity(intent);
  }
}
